<?php
/**
 * User: mzh03@163.com
 * Date: 2016/8/25
 * Time: 下午 05:28
 */


namespace Admin\Controller;
use Common\Controller\AdminBaseController;

class MessageController extends AdminBaseController {

    public function index(){
        $data = D('Message')->select();
        $this->assign('data', $data);
        $this->display();
    }

    public function delete(){
        $id=I('get.id');
        $map=array(
            'msid'=>$id
        );
        D('Message')->deleteData($map);
        $this->success('删除成功',U('Admin/Message/index'));
    }
}